import 'package:flutter/material.dart';
import 'package:get/get.dart';

class MyPage extends StatefulWidget {
  const MyPage({super.key});

  @override
  State<MyPage> createState() => _MyPageState();
}

class _MyPageState extends State<MyPage> {
  @override
  Widget build(BuildContext context) {
    return Center(
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          ElevatedButton(
              onPressed: () {
                // Navigator.of(context).pushNamed("/register1");
                Get.offNamed("/register1");
              },
              child: const Text("没有账号？立即注册")),
          ElevatedButton(
              onPressed: () {
                // Navigator.of(context).pushNamed("/login");
                Get.offNamed("/login");
              },
              child: const Text("已账号？去登录")),
        ],
      ),
    );
  }
}
